package com.fanshuai.spring.boot.component.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MyConsumerListener2 implements ConsumerListener {
    @Override
    public void beforeConsume(ConsumerRecord<String, String> record) {
        log.info("beforeConsume2, record={}", record);
    }

    @Override
    public void afterConsume(ConsumerRecord<String, String> record) {
        log.info("afterConsume2, record={}", record);
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
